package com.hgxd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hgxd.entity.pojo.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author wtf
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据userId和roleId新增数据
     * @param userId
     * @param roleId
     * @return
     */
    Boolean insertByUserId(@Param("userId") Long userId,@Param("roleId") Long roleId);
}
